const initState = {
  list: []
}

export const listReducer = (prevState = initState, action) => {
  switch (action.type) {
    case 'updateList': {
      return {
        list: action.payload
      }
    }
  }
  return prevState
}